package com.yanqu.road.entity.log.cross.xingyou;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_c_log_xing_you_bao_hua", autoSave = true, desc = "行游山水-宝华御街", eventName = "mouwater_shop", dataUpload = true, uploadCk = true, isCross = true)
public class LogCrossXingYouBaoHua extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(isIndex = true, desc = "分组id")
    private int groupId;
    @FieldTypeAnnotation(desc = "队伍ID", isIndex = true, dataAttribute = "team_id")
    private int teamId;
    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "购买道具", dataAttribute = "item_get")
    private String buy;

    @FieldTypeAnnotation(desc = "消耗银票", dataAttribute = "mouwater_siluse")
    private int cost;

    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogCrossXingYouBaoHua(int activityId, int teamId, long userId, String buy, int cost) {
        this.activityId = activityId;
        this.teamId = teamId;
        this.userId = userId;
        this.buy = buy;
        this.cost = cost;
        this.logTime = new Date();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public int getTeamId() {
        return teamId;
    }

    public void setTeamId(int teamId) {
        this.teamId = teamId;
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getBuy() {
        return buy;
    }

    public void setBuy(String buy) {
        this.buy = buy;
    }

    public int getCost() {
        return cost;
    }

    public void setCost(int cost) {
        this.cost = cost;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }
}
